//


import UIKit

class WP_FootView: UIView {
    
    var FootBlock:(()->())?
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setView()
    }
    
    func setView() {
        
        let button = UIButton(frame: CGRect(x: kRatioWidth(30), y: kRatioHeight(10), width: kScreenWidth - kRatioWidth(60), height: kRatioHeight(40)))
        button.setTitle("Save", for: .normal)
        button.setTitleColor(UIColor.white, for: .normal)
        button.backgroundColor = UIColorFromHex(0xFF8247)
        button.layer.cornerRadius = 3
        button.addTarget(self, action: #selector(click), for: .touchUpInside)
        self.addSubview(button)
 
    }
    
    @objc func click() {
       
           FootBlock!()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
  
    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */

}
